<?PHP
$PurviewLevel=0;

require("../inc/common.inc.php");
require_once(dirname(__FILE__)."/"."Admin_ChkPurview.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE>铭讯EOS网站后台管理</TITLE>
<Meta name="Keywords" Content="济南网站建设 济南网站制作 山东网站建设 济南铭讯软件有限公司">
<Meta name="Description" Content="济南网站制作：铭讯软件专业服务优秀企业，致力于网站建、设网站推广、网络营销一体的全访位网络服务商">
<link href="images/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/mxsoft/js/cookie.js"></script>
</head>

<body>
<?php require("mx_head.php") ;?>
<?php
$userinfo = $db->getinfo("select * from mx_members_log where userid ='".$_SESSION['mxadmin']['userid']."' order by id desc limit 1,1");
$mktime0 = strtotime(date('Y-m-d',time()));
$replynum = $db->num_rows($db->excu("select id from mx_tuisong_reply_log where addtime > $mktime0"));
$vppnum = $db->num_rows($db->excu("select tid from mx_tuisong_vpp where addtime > $mktime0"));
$appnum = $db->num_rows($db->excu("select tid from mx_tuisong_app where addtime > $mktime0"));

$sucaimsgnum = $db->num_rows($db->excu("select mid from mx_sucai_msg where fid=0"));
$sucaifilenum = $db->num_rows($db->excu("select fid from mx_sucai_file where ftype<>1"));
$sucaiappnum = $db->num_rows($db->excu("select aid from mx_sucai_app"));

$huiyuanvpp = $db->num_rows($db->excu("select id from mx_user"));
$huiyuanapp = $db->num_rows($db->excu("select id from mx_app_user"));

$vppnum2 = $db->num_rows($db->excu("select tid from mx_tuisong_vpp"));
$appnum2 = $db->num_rows($db->excu("select tid from mx_tuisong_app"));
?>
<script>
function closeinfo(closeid){
	document.getElementById(closeid).style.display="none";
	SetCookie(closeid,"yes");
}
</script>
	<div class="right">
    	<div id="closeinfo1" <?php echo isset($_COOKIE["closeinfo1"])?'style="display:none"':"";?>>
		<div class="tips1">微信营销管理平台今日新增关注2人。<div class="close"><a href="javascript:closeinfo('closeinfo1')"><img src="images/close_1.png" alt="close" border="0" /></a></div></div>
		<div class="height15"></div>
        </div>
        <div id="closeinfo2" <?php echo isset($_COOKIE["closeinfo2"])?'style="display:none"':"";?>>
		<div class="tips2">您上次登录时间为：<?php echo $userinfo?$userinfo["times"]:"未知";?>，IP地址为：<?php echo $userinfo?$userinfo["ip"]:"未知";?>，如非本人登录请修改密码。<div class="close"><a href="javascript:closeinfo('closeinfo2')"><img src="images/close_1.png" alt="close" border="0" /></a></div></div>
		<div class="height15"></div>
        </div>
        <div id="closeinfo3" <?php echo isset($_COOKIE["closeinfo3"])?'style="display:none"':"";?>>
		<div class="tips3">微信营销管理平台今日推送信息<?php echo ($vppnum+$appnum);?>条。<div class="close"><a href="javascript:closeinfo('closeinfo3')"><img src="images/close_1.png" alt="close" border="0" /></a></div></div>
		<div class="height15"></div>
        </div>
        <div id="closeinfo4" <?php echo isset($_COOKIE["closeinfo4"])?'style="display:none"':"";?>>
		<div class="tips4">微信营销管理平台今日回复信息<?php echo $replynum;?>条。<div class="close"><a href="javascript:closeinfo('closeinfo4')"><img src="images/close_1.png" alt="close" border="0" /></a></div></div>
		<div class="height15"></div>
        </div>
		<div class="gk">
			<h1 class="fl">Welcome to website</h1>
			<ul class="fr">
				<li><span class="c1"><?php echo ($sucaiappnum+$sucaifilenum+$sucaimsgnum);?></span><span>素材总数</span></li>
				<li><span class="c2"><?php echo ($huiyuanapp+$huiyuanvpp);?></span><span>会员总数</span></li>
				<li><span class="c3"><?php echo ($appnum2+$vppnum2);?></span><span>推送信息数</span></li>
				<li><span class="c4">2</span><span>今日新增关注</span></li>
			</ul>
			<div class="clear"></div>
		</div>
		<div class="height15"></div>
		<div class="xm1">
			<h1 class="fl">快速操作</h1><span class="fr"><a href="#"><img src="images/right_4.png" alt="设置" /></a></span>
		</div>
		<div class="clear"></div>
		<div class="xm1_b">
			<ul>
				<li><a href="#" class="n1">消息推送</a></li>
				<li><a href="#" class="n2">消息推送</a></li>
				<li><a href="#" class="n3">消息推送</a></li>
				<li><a href="#" class="n4">消息推送</a></li>
				<li><a href="#" class="n5">消息推送</a></li>
				<li><a href="#" class="n6">消息推送</a></li>
				<li><a href="#" class="n7">消息推送</a></li>
				<li><a href="#" class="n8">消息推送</a></li>
			</ul>
		<div class="clear"></div>
		</div>
		<div class="height15"></div>
		<div class="list">
			<div class="l1 fl">
				<div class="title"><h1 class="fl">待办事项</h1><span class="fr"><a href="#">更多>></a></span></div>
				<div class="bor">
					<ul>
						<li><a href="#">9-11号与客户联系</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
					</ul>
				</div>
			</div>
			<div class="l1 fr">
				<div class="title"><h1 class="fl">待办事项</h1><span class="fr"><a href="#">更多>></a></span></div>
				<div class="bor">
					<ul>
						<li><a href="#">9-11号与客户联系</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
						<li><a href="#">9-11号与客户联系进行资料整合与添加</a><span>2013-03-19</span></li>
					</ul>
				</div>
			</div>
		</div>
<?php require("mx_foot.php") ;?>
</div>
</body>
</html>
